<extend name="Public/base"/>
<block name="style">
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap3/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/FlatUI/css/flat-ui.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/style/style.css">
</block>
<block name="body">

    <body>
    <div class="main">
        <div class="paper">
            <div class="toolbar">
                <span class="title">业务管理</span>
            </div>
            <div class="divider"></div>
            <div class="body">
                <div class="serch_area">
                    <form role="form">
                        <div class="row">
                            <div class="col-lg-2">
                                <div class="input-group form-group ">
                                    <span class="input-group-addon">开始日期</span>
                                    <input type="text" class="form-control find_date start" name="start_time"
                                           placeholder="开始时间"/>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="input-group form-group ">
                                    <input type="text" class="form-control find_date end" name="end_time"
                                           placeholder="结束时间"/>
                                    <span class="input-group-addon">结束日期</span>
                                </div>
                            </div>
                            <button type="submit" class="btn btn-embossed btn-primary form-group">
                                查询
                            </button>
                            <!--<a href="{:U('csv_export')}" class="btn btn-embossed btn-info form-group"-->
                               <!--data-toggle="modal" data-target="#addModal">-->
                                <!--csv导出-->
                            <!--</a>-->
                            <a href="{:U('csv_export',array('csv_name'=>$csv_name))}" class="btn btn-embossed btn-info form-group">
                                csv导出
                            </a>
                        </div>

                    </form>
                </div>
                <div class="divider"></div>
                <div class="table_area content-block">
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th>日期</th>
                            <th>总数</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="lists" id="list">
                            <tr>
                                <td>{$list.rq}</td>
                                <td>{$list.zs}</td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>

    </body>
</block>
<block name="script">
    <script type="text/javascript" src="__STATIC__/FlatUI/js/flat-ui.min.js"></script>
    <script type="text/javascript" src="__STATIC__/FlatUI/js/application.js"></script>
    <script type="text/javascript" src="__STATIC__/bootstrapValidator.min.js"></script>
    <script type="text/javascript" src="__STATIC__/validator.js"></script>
    <script>
        // 日期插件加载
        $('.form_date,.find_date').datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            weekStart: 1,
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 2,
            forceParse: 0
        });
    </script>
</block>